package com.heima.cross.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jack
 * @data 2024 17:11
 */
@RestController
@RequestMapping("student")
public class StudentController {


    @PostMapping("add")
    public String add(String name){
        System.out.println("添加学生：name = " + name);
        return "success";
    }
}
